﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using NUnit.Framework;
using ModelPredictPro.General.IO;

namespace ModelPredictPro.GeneralTest {
    [TestFixture]
    public class TestFileReader {
            static string[] lines = @"123456798
123456789
fdadfj;klsjf;dksl
fdjska;
end".Split(default(char[]));

        [Test]
        public void TestReadTempFile() {

            TempFileInfo tfi = new TempFileInfo(lines);

            int lineCount = 0;

            foreach (string line in FileReader.ReadAllLines(tfi.FilePath)) {
                Assert.AreEqual(line, lines[lineCount++]);
            }
            Console.WriteLine(tfi.FilePath);
        }

    }
}
